#ifndef CHECKCODEWIDGET_H
#define CHECKCODEWIDGET_H

#include <QWidget>
QT_BEGIN_NAMESPACE
class QLineEdit;
class QPushButton;
QT_END_NAMESPACE



class CheckCodeWidget : public QWidget
{
  Q_OBJECT

public:
  explicit CheckCodeWidget(QWidget *parent = nullptr);
  ~CheckCodeWidget();

  void create();

private slots:
  //获取QListWidget的当前id
  void getCurrentIndex(int index);

  //开始校准
  void btn1Slots();

  //结束
  void btn2Slots();

signals:

  void mySignalBegin(int flag); //自定义信号函数,msg参数可以省略

  void mySignalOver(int flag);

private:

  int flag = 1;

  QLineEdit *lineEdit = nullptr;

  QPushButton *btn1 = nullptr;

  QPushButton *btn2 = nullptr;


};

#endif // CHECKCODEWIDGET_H
